package com.JZ.QM.service;

import com.JZ.QM.common.entity.ProductEarningRecordEntity;
import com.JZ.QM.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.org.apache.xpath.internal.operations.Bool;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * @author: cyc
 * @email cyc@gmail.com
 * @date: 2020/7/8 11:42
 */
public interface ProductEarningRecordService extends IService<ProductEarningRecordEntity> {
    /**
     * 分页查询
     * @param params
     * @return
     * @throws Exception
     */
    PageUtils queryPage(Map<String, Object> params) throws Exception;

    /**
     * 计算产品收益记录
     * @return
     */
    Boolean caculateProductEarning();

    /**
     * 获取组合内的产品收益信息
     * @param accountId 财富账号id
     * @return
     */
    ArrayList<HashMap> showProductEarningRecordForChart(Long accountId);
}
